package com.feign.service;

import com.feign.Hystric.SchedualServiceHiHystric;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2017/6/24.
 */
@FeignClient(value = "eureka-service",fallback = SchedualServiceHiHystric.class)
public interface UserFeignService {

    @RequestMapping(value = "/user/name")
    public void sayUserService(@RequestParam("name") String name);
}
